<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>滚动计数器</title>
  <style>
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }

    body,
    html,
    #app {
      height: 100%;
    }

    #app {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #div {
      /* margin-bottom: 150px; */
      width: 80vw;
      height: 55px;
      display: grid;
      grid-template-columns: 50px auto 50px;
      grid-template-rows: auto;
      place-items: center center;
      background-color: #010001;
      border-radius: 14px;
      place-items: center center;
    }

    button,
    input {
      appearance: none;
      all: inherit;
      width: 100%;
    }

    #div>button {
      color: #ffffff;
      font-size: 30px;
    }

    #div>input {
      color: #0400fd;
      text-align: center;
      border-radius: 0px;
      font-size: 34px;
      position: relative;
    }

    #div>input::after,
    #div>input::before {
      position: absolute;
      color: pink;
    }

    #div>input::after {
      content: "9";
      top: 100px;
    }

    #div>input::before {
      content: "10";
      bottom: 10px;
    }
  </style>
</head>

<body>
  <div id="app">
    <div id="div">
      <button>-</button>
      <input type="text" id="txt">
      <!-- <span>10</span> -->
      <button>+</button>
    </div>
  </div>
</body>
<script src="../js/vue.js"></script>
<script>
  "use strict"; {
    const app = new Vue({
      el: "#app",
      data: {},
      methods: {

      },
    });
  };
</script>

</html>